function diggup(topicid,userid,digg){

	if(userid==''){
		alert("请登录后在顶踩帖子哦！");return false;
	}
		
	$.ajax({
		type: "POST",
		url: "index.php?app=group&ac=plugin&plugin=digg&in=do&ts=digg_add",
		data: "topicid="+topicid+"&userid="+userid+"&digg="+digg,
		beforeSend:function(){
		},
		success:function(result){
			if(result == '0'){
				alert('你已经顶踩过本帖啦，请不要重复顶踩！');return false;
			}else if(result == '1'){
				window.location.reload(true);
			}
		}
	});
}